package LuoGu;

import java.util.Scanner;

public class B2005 {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        String s=sc.next();
        for(int i=1;i<=3;i++){
            for(int j=3-i;j>0;j--){
                System.out.print(" ");
            }
            for(int k=1;k<=1+2*(i-1);k++){
                System.out.print(s);
            }
            System.out.println();
        }
    }
}
